layui.use(['element', 'layer', 'form', 'table'], function () {
    var element = layui.element;
    var table = layui.table;
    var layer = layui.layer;
    var form = layui.form;

    $('#centerLogout').click(function () {
        $.ajax({
            url: '/front/logout',
            type: 'post',
            dataType: 'json',
            success: function (e) {
                layer.msg(e.msg);
                if (e.msg == "已退出当前登录") {
                    setTimeout(function () {
                        window.location.href="/front/index"
                    },1000);
                }
            }
        });
    })

});